import express from 'express'
import { createProxyMiddleware } from 'http-proxy-middleware';
const app = express();

// --------- 看这里 ↓ -------------------------
app.use('/', createProxyMiddleware({
  target: 'https://juejin.cn/',
  changeOrigin: true
}));
// --------- 看这里 ↑ -------------------------
app.listen(3000);
